<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

/**
 * App\model\baiduForm
 *
 * @property int $id
 * @property string|null $data 百度表单提交
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm whereData($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\baiduForm whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class baiduForm extends Model
{
    protected $table='baidu_form';
    public function getDataAttribute($value)
    {
        return json_decode($value,true);
    }
}
